package com.kittlen.managementSystem.service.impl;

import com.kittlen.managementSystem.mapper.CountMapper;
import com.kittlen.managementSystem.service.ICountService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author kittlen
 * @since 2021-02-05
 */
@Service
public class CountServiceImpl extends ServiceImpl<CountMapper, Map> implements ICountService {

    @Override
    public Map<String, Integer> countByStudent() {
        return baseMapper.countByStudent();
    }

    @Override
    public Map<String, Integer> countByCoach() {
        return baseMapper.countByCoach();
    }

    @Override
    public Map<String, Integer> countByVehicle() {
        return baseMapper.countByVehicle();
    }
}
